Skip to content

fix(@schematics/angular): correct error and warning messages in environments schematic - #34376

Merged
clydin merged 1 commit into
angular:mainfrom
MeAkib:fix/environments-messages
Oct 19, 2026
Merged

clydin merged 1 commit into
angular:mainfrom
MeAkib:fix/environments-messages

Conversation

@MeAkib

@MeAkib MeAkib commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

The error for non-application projects concatenated the first sentence with the project type before evaluating the ternary, so the "Only application project types are supported" sentence was never printed and projects without a projectType were reported as having a "projectType" of "undefined". The third-party server builder warning also printed the build target's builder instead of the server target's builder.

Wrap the ternary in parentheses, use the server target's builder in the warning, and fix the typos in both error messages.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request fixes minor typos in error messages and logging strings within the environments schematic and adds corresponding unit tests to verify the correct behavior for non-application projects and third-party server builders. There are no review comments to address.

@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Oct 19, 2026
…onments schematic

The error for non-application projects concatenated the first sentence with the
project type before evaluating the ternary, so the "Only application project
types are supported" sentence was never printed and projects without a
`projectType` were reported as having a "projectType" of "undefined". The
third-party `server` builder warning also printed the `build` target's builder
instead of the `server` target's builder.

Wrap the ternary in parentheses, use the `server` target's builder in the
warning, and fix the typos in both error messages.
@alan-agius4
alan-agius4 force-pushed the fix/environments-messages branch from 176255a to b03ce6c Compare October 19, 2026 08:41
@clydin
clydin merged commit 32dd079 into angular:main Oct 19, 2026
39 checks passed
@clydin

clydin commented Oct 19, 2026

Copy link
Copy Markdown
Member

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @schematics/angular target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants